#pragma warning(disable:4996)
#include<stdio.h>
#include<stdlib.h>
int main()
{
	//a到z的循环输入和循环输出
	char start = 'a';
	FILE* pf = fopen("text.txt", "r+");
	for (; start < 'z'; start++)
		fputc(start, pf);
	//写完后指针置于最末，所以需要rewind
	rewind(pf);
	for (int i = 0; i < 26; i++)
	{
		char tmp = fgetc(pf);
		printf("%c ", tmp);
	}
			return 0;
}	